package com.moss.cloud.common.core.model.dto;

import com.moss.cloud.common.core.annotation.ImportExcel;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class ExcelDemoListDTO implements Serializable {
    @ImportExcel(fieldName = "序号")
    private String serialId;

    @ImportExcel(fieldName = "用户ID", nullType = "BLOCK")
    private String userId;

    @ImportExcel(fieldName = "用户名称", nullType = "BLOCK")
    private String userName;

    @ImportExcel(fieldName = "社区积分卡号", nullType = "BLOCK")
    private String acctNo;

    @ImportExcel(fieldName = "会员类型",nullType = "BLOCK")
    private String memberType;

    @ImportExcel(fieldName = "社区认证类型")
    private String authType;

    @ImportExcel(fieldName = "积分金额", nullType = "NULL", regeRule = "\\d+(\\.\\d{1,2})?")
    private BigDecimal amt;

    @ImportExcel(fieldName = "身份证", nullType = "BLOCK", regeRule = "^[1-9][0-9]{5}(18|19|20)[0-9]{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)[0-9]{3}([0-9]|(X|x))")
    private String certNo;

    @ImportExcel(fieldName = "手机号", nullType = "BLOCK", regeRule = "1\\d{10}")
    private String phoneNo;

    @ImportExcel(fieldName = "备注")
    private String remake;
}
